package com.qd.panda.service.third.etc.dto;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;

@Data
public class RespDTO {
    private static final String CODE_SUCCESS = "00";
    private static final String CODE_ERROR = "99";

    private String code;
    private String msg;
    private String receiveTime;
    private JsonNode bizContent;
    private String sign;
    private Boolean success;

    public Boolean getSuccess() {
        return code.equals(CODE_SUCCESS);
    }

    public void freeData() {
        this.code = null;
        this.msg = null;
        this.receiveTime = null;
        this.bizContent = null;
        this.sign = null;
    }

}
